package com.example.demo.domain;

public enum CodeEnum {
    SUCCESS(1, "Request success"),FAIL(-9999, "System error");
    private Integer code;
    private String desc;

    CodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
